{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSDN 注册</title>
    <link rel="stylesheet" href="/static/css/csdn_header.css">
    <link rel="stylesheet" href="/static/css/user_login.css">
    <link rel="stylesheet" href="{% static '/plugins/bootstrap-3.4.1/css/bootstrap.css' %}">
    
</head>
<body>
{% include 'csdn_django/header_base.html' %}
<div class="user_container">
    <div class="user-outer-box">
        <form method="post" action="{% url 'user:register' %}" novalidate>
            {% csrf_token %}
            <div class='form-title'>
                <span class="user-outer-box title">注册</span>
            </div>
            <div class="user_info_box">
                {% for foo in form %}
                    <div class="">
                        {{ foo.label }}: {{ foo }}
                    </div>
                    <span class="errors">{{ foo.errors.0 }}</span>
                {% endfor %}
                {{ form.non_field_errors }}
            </div>
            <input type="submit" value="注册">
        </form>
    </div>
</div>
</body>
</html>

